package org.tdprovider.app;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Provider {

	public static void main(String[] args) throws Exception {
		System.out.println("Provider begin ...");
		// 启动spring容器，把服务器启动之后注册到Zookeeper
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "applicationProvider.xml" });
		context.start();
		System.out.println("...");
		System.in.read(); // 为保证服务一直开着，利用输入流的阻塞来模拟

	}

}
